﻿@inherits Project.Module.View.CMS.CMSThemSanPham
@{
    ViewBag.Title = "Thêm mới sự kiện";
    Layout = "~/Views/Backend/Home/_Master.cshtml";
}
<h1>Thêm mới sản phẩm</h1>
<table height="20px"></table>
        <form action="/admin/addEvent" method="post" enctype="multipart/form-data">
        <table border="0">
        	<tr>
            	<td>Tiêu đề</td>
            	<td><input type="text" name="title" id="title" class="inp-form" /></td>
            </tr>
            <tr height="10px"></tr>
            <tr>
            	<td>Link Ảnh</td>
                <td><input type="file" name="image" id="image" class="inp-form" /></td>
            </tr>
            <tr height="10px"></tr>
            <tr>
            	<td>Mô tả</td>
            	<td><input type="text"  name="desc" id="desc"/></td>
            </tr>
            <tr height="10px"></tr>
            <tr>
            	<td><input type="submit" id="submit" value="Thêm mới" /></td>&nbsp;&nbsp;
                <td><input type="submit" id="btnCancel" value="Hủy" /></td>
            </tr>
        </table>
        </form>
<table height="20px"></table>

<script type="text/javascript">
    $('#btnCancel').click(function () {
        document.getElementById('name').value = '';
        document.getElementById('image').value = '';
        document.getElementById('quantity').value = '';
        document.getElementById('price').value = '';
        document.getElementById('description').value = '';

        // return
        return false;
    });
</script>
